package com.czmh.etc.onlinepubsys.controller;

import com.czmh.etc.common.core.annotation.ApiVersion;
import com.czmh.etc.onlinepubsys.json.JsonResult;
import com.czmh.etc.onlinepubsys.services.EtcApplyInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName：YuePubController
 * @Description：粤通卡发行控制器
 * @Author： sevenchen.
 * @Date：2019/10/14 10:33.
 * @Version：1.0.0
 */
@RestController
@RequestMapping("/{version}/api/applyInfo/")
@Api(tags = "ETC发行接口【新】-粤通卡")
public class EtcApplyInfoController {
    @Autowired
    private EtcApplyInfoService etcApplyInfoService;

    /**
     * 查询车辆是否已办理粤通卡
     * @param telePhoneNo 可为空! 手机号码
     * @param plateColor 不可为空! 车牌颜色: 0-蓝. 4-绿色.
     * @param plateNo 不可为空! 车牌号码
     * @return
     */
    @PostMapping(value = "selectApplyRecord")
    @ApiVersion(1)
    @ApiOperation(value="查询申请记录", notes = "查询申请记录")
    public JsonResult selectApplyRecord(){
        return etcApplyInfoService.selectApplyRecord();
    }
}
